package com.wangrui.service;

import com.wangrui.dto.MajorSchool;
import com.wangrui.utils.Page;
import com.wangrui.pojo.Major;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王锐
 * @since 2020-07-10
 */
public interface MajorService extends IService<Major> {

    Map<String, Object> AllMajors(Page<MajorSchool> page1);

    int majorSave(Major major);

    int majorUpdate(Major major);

    int majorDelete(int ids);

    List<Major> queryMajorsJson();

}
